#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "Object.h"
#include "Materiaux.h"
#include "pVect.h"

class Triangle : public Object
{
    public:
        pVect p1,p2,p3;

        Triangle();
        Triangle(pVect p1, pVect p2, pVect p3);
        Triangle(pVect p1, pVect p2, pVect p3, Materiaux materiaux);
        virtual ~Triangle();

        virtual HitPoint* intersect(pVect origin, pVect rayon);
    protected:
    private:
};

#endif // TRIANGLE_H
